/**
  ******************************************************************************
  * @file    it.c 
  * @author  MCD Application Team
  * @brief   Main Interrupt Service Routines.
  *          This file provides template for all exceptions handler and 
  *          peripherals interrupt service routine.
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "bsp.h"
#include "bsp_cpu_it.h"

/** @addtogroup 
  * @{
  */
cpu_it_type cpu_it;

/**
  * @brief  This function handles USART1_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART1_IRQHandler(void)
{
	if (cpu_it.uart1)
		cpu_it.uart1();
}

/**
  * @brief  This function handles USART2_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART2_IRQHandler(void)
{
	if (cpu_it.uart2)
		cpu_it.uart2();
}

/**
  * @brief  This function handles USART3_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART3_IRQHandler(void)
{
	if (cpu_it.uart3)
		cpu_it.uart3();
}

/**
  * @brief  This function handles UART6_IRQHandler exception.
  * @param  None
  * @retval None
  */
void UART6_IRQHandler(void)
{
	if (cpu_it.uart6)
		cpu_it.uart6();
}


/**
  * @brief  This function handles UART7_IRQHandler exception.
  * @param  None
  * @retval None
  */
void UART7_IRQHandler(void)
{
	//if (cpu_it.uart7)
	//	cpu_it.uart7();
}

/**
  * @brief  This function handles USART8_IRQHandler exception.
  * @param  None
  * @retval None
  */
void UART8_IRQHandler(void)
{
	//if (cpu_it.uart8)
	//	cpu_it.uart8();
}
